package com.Java.train.business.service.daily;

import com.Java.train.common.response.CommonResp;
import com.Java.train.business.entity.DailyTrainCarriage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.Java.train.common.response.PageResp;
import com.Java.train.business.entity.DTO.DailyTrainCarriageDTO;
import com.Java.train.business.req.daily.DailyTrainCarriageQueryReq;

import java.util.Date;
import java.util.List;

/**
* @author luomoxingchen
* @since 2024-09-24
*/
public interface DailyTrainCarriageService extends IService<DailyTrainCarriage> {

    /**
    * DailyTrainCarriage详情
    * @param
    * @return
    */
    PageResp<DailyTrainCarriageDTO> queryList(DailyTrainCarriageQueryReq dailyTrainCarriageQueryReq);

    /**
    * DailyTrainCarriage保存和修改
    * @param dailyTrainCarriage 根据需要进行传值
    * @return
    */
    CommonResp<Object> modify(DailyTrainCarriage dailyTrainCarriage);

    /**
    * DailyTrainCarriage删除
    * @param ids
    * @return
    */
    CommonResp<Object> remove(String ids);

    List<DailyTrainCarriage> genDaily(Date date, String trainCode);

    List<DailyTrainCarriage> selectCarriageBySeatType(Date date, String trainCode, String seatType);
}


